package com.icow.wms.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icow.wms.basic.mapper.DoorPeripheralMapper;
import com.icow.wms.basic.domain.DoorPeripheral;
import com.icow.wms.basic.service.IDoorPeripheralService;

/**
 * doorService业务层处理
 * 
 * @author bcs
 * @date 2024-08-13
 */
@Service
public class DoorPeripheralServiceImpl implements IDoorPeripheralService 
{
    @Autowired
    private DoorPeripheralMapper doorPeripheralMapper;

    /**
     * 查询door
     * 
     * @param id doorID
     * @return door
     */
    @Override
    public DoorPeripheral selectDoorPeripheralById(Long id)
    {
        return doorPeripheralMapper.selectDoorPeripheralById(id);
    }

    /**
     * 查询door列表
     * 
     * @param doorPeripheral door
     * @return door
     */
    @Override
    public List<DoorPeripheral> selectDoorPeripheralList(DoorPeripheral doorPeripheral)
    {
        return doorPeripheralMapper.selectDoorPeripheralList(doorPeripheral);
    }

    /**
     * 新增door
     * 
     * @param doorPeripheral door
     * @return 结果
     */
    @Override
    public int insertDoorPeripheral(DoorPeripheral doorPeripheral)
    {
        return doorPeripheralMapper.insertDoorPeripheral(doorPeripheral);
    }

    /**
     * 修改door
     * 
     * @param doorPeripheral door
     * @return 结果
     */
    @Override
    public int updateDoorPeripheral(DoorPeripheral doorPeripheral)
    {
        return doorPeripheralMapper.updateDoorPeripheral(doorPeripheral);
    }

    /**
     * 批量删除door
     * 
     * @param ids 需要删除的doorID
     * @return 结果
     */
    @Override
    public int deleteDoorPeripheralByIds(Long[] ids)
    {
        return doorPeripheralMapper.deleteDoorPeripheralByIds(ids);
    }

    /**
     * 删除door信息
     * 
     * @param id doorID
     * @return 结果
     */
    @Override
    public int deleteDoorPeripheralById(Long id)
    {
        return doorPeripheralMapper.deleteDoorPeripheralById(id);
    }
}
